package com.aixin.csopuser.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Entity
@Table(name = "axjy_shop_order_product_detail")
public class AxjyOrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Column(name = "shop_product_title")
    private String shopProductTitle;
    @Column(name = "shop_product_picture_url")
    private String shopProductPictureUrl;
    @Column(name = "shop_product_sku_name")
    private String shopProductSkuName;
    @Column(name = "amount")
    private String amount;
    @Column(name = "sku_price")
    private BigDecimal skuPrice;
    @Column(name = "shipment_price")
    private BigDecimal shipmentPrice;
    @Column(name = "cash_pledge_price")
    private BigDecimal cashPledgePrice;
    @Column(name = "sumprice")
    private BigDecimal sumPrice;
    @Column(name = "store_name")
    private String storeName;
    @Column(name = "order_state")
    private String orderState;
    @Column(name = "buyer_user_id")
    private String buyerUserId;
    @Column(name = "create_time")
    private String createTime;

//    @ManyToOne(fetch = FetchType.LAZY)
//    @JoinColumn(name = "buyer_user_id", referencedColumnName = "id", insertable = false, updatable = false)
//    private AxjyCustomerLogin customer;
}
